package com.oceansoft.mobile.econsole.modules.complaint.entity;

import com.google.common.base.Strings;

import java.util.Date;

/**
 * Created by 我的大名叫陆健伟 on 2016/2/2.
 */

/**
 * 线索举报实体类
 */
public class ComplaintReport {
    /**
     * 主键
     */
    private String guid;
    /**
     * 投诉/举报 主题
     */
    private String crTitle;
    /**
     * 投诉/举报 内容
     */
    private String crContent;
    /**
     * 类型：0投诉举报，1线索举报 2城区禁放烟花爆竹举报 3公交车抓小偷 4一键报警
     * 大庆类型: 1-线索举报 2-随手拍
     */
    private int crType;
    /**
     * 状态：0未处理，1已处理
     */
    private int crStatus = 0;
    /**
     * 是否删除：0未删除，1已删除
     */
    private int isDelete = 0;
    /**
     * 是否匿名：0否，1是
     */
    private int isAnonymous;
    /**
     * 创建时间
     */
    private Date createDate;
    /**
     * 用户的guid,
     */
    private String userGuid;
    /**
     * 用户名
     */
    private String userName;

    /**
     * 是否阅读，0否，1是
     */
    private int isRead = 0;

    /**
     * 阅读量
     */
    private int readCount = 0;

    private String contact;//联系人
    private String contactPhone;//联系电话
    private String deptId;//部门ID
    private String deptName;//部门名称
    private String pt;// 平台 I：IOS  A：安卓 W：web

    /**
     * 地址
     */
    private String address;
    /**
     * 证件号
     */
    private String userCode;

    private String temp2;

    private String temp5;

    private String xsly;

    private String sfdd;

    private String gjxx;

    private String temp7;//线索举报类型、随手拍类型

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public String getCrTitle() {
        return crTitle;
    }

    public void setCrTitle(String crTitle) {
        this.crTitle = crTitle;
    }

    public int getIsRead() {
        return isRead;
    }

    public void setIsRead(int isRead) {
        this.isRead = isRead;
    }

    public int getReadCount() {
        return readCount;
    }

    public void setReadCount(int readCount) {
        this.readCount = readCount;
    }

    public String getCrContent() {
        return crContent;
    }

    public void setCrContent(String crContent) {
        this.crContent = crContent;
    }

    public int getCrType() {
        return crType;
    }

    public void setCrType(int crType) {
        this.crType = crType;
    }

    public int getCrStatus() {
        return crStatus;
    }

    public void setCrStatus(int crStatus) {
        this.crStatus = crStatus;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public int getIsAnonymous() {
        return isAnonymous;
    }

    public void setIsAnonymous(int isAnonymous) {
        this.isAnonymous = isAnonymous;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUserGuid() {
        return userGuid;
    }

    public void setUserGuid(String userGuid) {
        this.userGuid = userGuid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getPt() {
        return pt;
    }

    public void setPt(String pt) {
        this.pt = pt;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getTemp2() {
        return temp2;
    }

    public void setTemp2(String temp2) {
        this.temp2 = temp2;
    }

    public String getTemp5() {
        return temp5;
    }

    public void setTemp5(String temp5) {
        this.temp5 = temp5;
    }

    public String getXsly() {
        return xsly;
    }

    public void setXsly(String xsly) {
        this.xsly = xsly;
    }

    public String getSfdd() {
        return sfdd;
    }

    public void setSfdd(String sfdd) {
        this.sfdd = sfdd;
    }

    public String getGjxx() {
        return gjxx;
    }

    public void setGjxx(String gjxx) {
        this.gjxx = gjxx;
    }

    public String getTemp7() {
        return temp7;
    }

    public void setTemp7(String temp7) {
        this.temp7 = temp7;
    }

    public boolean isPass() {
        if (Strings.isNullOrEmpty(this.getCrContent()) || Strings.isNullOrEmpty(this.getCrTitle())) {
            return false;
        }
        return true;
    }
}
